package main

import (
	"fmt"
	"runtime"
)

func main() {
	go func() {
		for {
			fmt.Println("子go程....子go程....子go程....")
		}
	}()

	for {
		fmt.Println("出让主go程时间片")
		runtime.Gosched()
		fmt.Println("主go程....")
	}
}
